include ../../../mk/Makefile.root.include
include ../../../mk/Makefile.libs.include

TARGET_BIN = api_demo

PROJ_INC_PATHES += \
					$(SGE_SAFE_API_CLIENT_INC_PATH) \
				   ./api/include \
				   ./easy/include \

PROJ_LIB_PATHES += \
					$(SGE_SAFE_API_CLIENT_LIB_PATH) \
				   ./api/lib \
				   ./easy/lib \

PROJ_LIB_NAMES += api_cli_safe \
				  api \
				  easy \
				  pthread \
				  dl \

all: $(TARGET_BIN)

$(TARGET_BIN): $(OBJS)
	$(DO_C_TARGET)

run:
	export LD_LIBRARY_PATH=$(SGE_SAFE_API_CLIENT_LIB_PATH):./easy/lib:./api/lib && ./$(TARGET_BIN)

clean:
	$(DO_CLEAN)
